package com.hzf.material.dao.model;

import java.io.Serializable;
import java.util.List;

public class MaterialGoodsTypeBig implements Serializable {
    /**
     * 商品类型大类ID（自增）
     *
     * @mbg.generated
     */
    private Integer bigId;

    /**
     * 商品类型大类名称
     *
     * @mbg.generated
     */
    private String bigName;

    /**
     * 图片地址
     *
     * @mbg.generated
     */
    private String imgUrl;

    /**
     * 备注
     *
     * @mbg.generated
     */
    private String remark;

    private List<MaterialGoodsTypeMiddle> materialGoodsTypeMiddleList;

    private static final long serialVersionUID = 1L;

    public Integer getBigId() {
        return bigId;
    }

    public void setBigId(Integer bigId) {
        this.bigId = bigId;
    }

    public String getBigName() {
        return bigName;
    }

    public void setBigName(String bigName) {
        this.bigName = bigName;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", bigId=").append(bigId);
        sb.append(", bigName=").append(bigName);
        sb.append(", imgUrl=").append(imgUrl);
        sb.append(", remark=").append(remark);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MaterialGoodsTypeBig other = (MaterialGoodsTypeBig) that;
        return (this.getBigId() == null ? other.getBigId() == null : this.getBigId().equals(other.getBigId()))
            && (this.getBigName() == null ? other.getBigName() == null : this.getBigName().equals(other.getBigName()))
            && (this.getImgUrl() == null ? other.getImgUrl() == null : this.getImgUrl().equals(other.getImgUrl()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBigId() == null) ? 0 : getBigId().hashCode());
        result = prime * result + ((getBigName() == null) ? 0 : getBigName().hashCode());
        result = prime * result + ((getImgUrl() == null) ? 0 : getImgUrl().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }

    public List<MaterialGoodsTypeMiddle> getMaterialGoodsTypeMiddleList() {
        return materialGoodsTypeMiddleList;
    }

    public void setMaterialGoodsTypeMiddleList(List<MaterialGoodsTypeMiddle> materialGoodsTypeMiddleList) {
        this.materialGoodsTypeMiddleList = materialGoodsTypeMiddleList;
    }
}